
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>修改商品</title>
	<!-- bootstrap 核心css -->
	<link rel="stylesheet" href="__PUBLIC__/bootstrap/css/bootstrap.min.css">
	<hdjs/>
	<!-- bootstrap 核心js -->
	<script src="__PUBLIC__/bootstrap/js/bootstrap.min.js"></script>
	<link rel="stylesheet" href="__PUBLIC__/Common/css/main.css" />
	<style type="text/css">
	.promise{margin-right:10px;}
		input[type="text"]{
            background-color: #FFFFFF;
            border: 2px solid #DDDDDD;
            border-radius: 0;
            box-shadow: 2px 2px 2px #F0F0F0 inset !important;
            color: #555555;
            display: inline-block;
            font-size: 12px;
            line-height: 30px;
            margin: 0;
            padding: 0 6px;
            vertical-align: middle;
            height: 30px;
        }
	</style>
</head>
<body>
	<div class="pos">修改商品</div>
	<form action="{|U:'edit2_save'}" name="addForm" method="post">
		<table class="table table-bordered table-hover">

			<tr height="30">
				<td class="" width="150">主标题：</td>
				<td><input type="text" name="title" value="{$data.title}" /></td>
			</tr>
			<tr height="30">
				<td class="" width="150">副标题：</td>
				<td><input type="text" name="subtitle" value="{$data.subtitle}"/></td>
			</tr>
			<tr height="30">
				<td class="" width="150">原价：</td>
				<td><input type="text" name="price" value="{$data.price}" /><span class="tishi">元</span></td>
			</tr>
			<tr height="30">
				<td class="" width="150">团购价：</td>
				<td><input type="text" name="group_price" value="{$data.group_price}" /><span class="tishi">元</span></td>
			</tr>
			<foreach from="$attrArr" key="$k" value="$v">
			<tr height="30">
				<td class="" width="150">{$v.attrname}：</td>
				<td>
					<foreach from="$v['value']" key="$key" value="$value">
					<label class="radio inline"><input type="radio" name="atid[{$k}]" <if value="in_array($key , $data['goodsAttr'])">checked="checked"</if> value="{$key}"> {$value}</label> 
					</foreach>
				</td>
			</tr>
			</foreach>
			<tr height="30">
				<td class="" width="150">截止日期：</td>
				<td>
				  <input type="text" readonly="readonly" id="updatetime" name="close_date"
				  value="{$data.close_date}" class="w150"/>
 				 <script>
				    $('#updatetime').calendar({format: 'yyyy-MM-dd'});
				 </script>
				</td>
			</tr>
			<tr height="30">
				<td class="" width="150">不可用日期：</td>
				<td><input type="text" name="not_use_date" value="{$data.not_use_date}" /></td>
			</tr>
			<tr height="30">
				<td class="" width="150">使用时间：</td>
				<td><input type="text" name="use_time" value="{$data.use_time}" /></td>
			</tr>
			<tr height="30">
				<td class="promise" width="150">服务承诺：</td>
				<td>
					<if value="in_array(1 , $data.promise)"><span>随时退</span></if>
					<if value="in_array(2 , $data.promise)"><span>过期退</span></if>
					<if value="in_array(3 , $data.promise)"><span>急速退</span></if>
					<if value="in_array(4 , $data.promise)"><span>真实评价</span></if>
				</td>
			</tr>
			<tr height="30">
				<td class="" width="150">预约提醒：</td>
				<td><input type="text" name="appointment" value="{$data.appointment}" /></td>
			</tr>
			<tr height="30">
				<td class="" width="150">温馨提示：</td>
				<td><textarea name="reminder" style="width:400px" rows="5">{$data.reminder}</textarea></td>
			</tr>
			<tr height="30">
				<td class="" width="150">重要通知：</td>
				<td><textarea name="notice" style="width:400px" rows="5">{$data.notice}</textarea></td>
			</tr>
			<tr height="30">
				<td class="" width="150">商家服务：</td>
				<td><input type="text" name="service" value="{$data.service}" /></td>
			</tr>
			<tr height="30">
				<td class="" width="150">商品图片：</td>
				<td><!-- <upload size='5' type='jpg,png,gif' limit='5' name='pic' alt="false" water="false"/> -->
<link rel="stylesheet" type="text/css" href="http://localhost/Project/Meituan/hdphp/hdphp/Extend/Org/Uploadify/uploadify.css" />
            <script type="text/javascript" src="http://localhost/Project/Meituan/hdphp/hdphp/Extend/Org/Uploadify/jquery.uploadify.min.js"></script>
            <script type="text/javascript">
            var HDPHP_CONTROL         = "http://localhost/Project/Meituan/index.php?a=Admin&c=Goods&m=keditor_upload&g=Mei";
            var UPLOADIFY_URL    = "http://localhost/Project/Meituan/hdphp/hdphp/Extend/Org/Uploadify/";
            var HDPHP_UPLOAD_THUMB    ="";
HDPHP_UPLOAD_TOTAL = 0</script>
            <script type="text/javascript" src="http://localhost/Project/Meituan/hdphp/hdphp/Extend/Org/Uploadify/hd_uploadify.js"></script>
<script type="text/javascript">
    $(function() {
        hd_uploadify_options.removeTimeout  =0;
        hd_uploadify_options.fileSizeLimit  ="5MB";
        hd_uploadify_options.fileTypeExts   ="*.jpg;*.png;*.gif";
        hd_uploadify_options.queueID        ="hd_uploadify_pic_queue";
        hd_uploadify_options.showalt        =false;
        hd_uploadify_options.uploadLimit    =5;
        hd_uploadify_options.input_type    ="input";
        hd_uploadify_options.elem_id    ="";
        hd_uploadify_options.upload_img_max_width    ="1000";
        hd_uploadify_options.upload_img_max_    ="1000";
        hd_uploadify_options.success_msg    ="正在上传...";//上传成功提示文字
        hd_uploadify_options.formData ={water : "0",upload_img_max_width:"1000",upload_img_max_height:"1000",fileSizeLimit:5242880, someOtherKey:1,PHPSESSID:"9d81n8s2euqd0qnmsisg6kuh61",upload_dir:"",hdphp_upload_thumb:""};
        hd_uploadify_options.thumb_width =200;
        hd_uploadify_options.thumb_height          =150;
        hd_uploadify_options.uploadsSuccessNums = 0;
        $("#hd_uploadify_pic").uploadify(hd_uploadify_options);
        });
</script>
<input type="file" name="up" id="hd_uploadify_pic"/>
<div class="hd_uploadify_pic_msg num_upload_msg" style="display:block">
<input type="checkbox" id="add_upload_water" uploadify_id="hd_uploadify_pic" /><strong style="color:#03565E">是否添加水印</strong><span></span>单文件最大<strong>5MB，允许上传类型*.jpg;*.png;*.gif</strong>
</div>

<div id="hd_uploadify_pic_queue"></div>
<div class="hd_uploadify_pic_files uploadify_upload_files" input_file_id ="hd_uploadify_pic">
    <ul>
    <foreach from="$data['pic']" key="$k" value="$v">
    	<li class="upload_thumb" style="width:200px;" input_type="input">
			<div class="delUploadFile"></div>
			<img width="200" height="150" path="{$v}" src="__ROOT__/{$v}">
			<input type="hidden" value="{$v}" name="pic[{$k}][path]" t="file">
		</li>
	</foreach>
    </ul>
    <div style="clear:both;"></div>
</div>
				</td>
			</tr>

			<tr height="30">
				<td class="" width="150">本单详情：</td>
				<td><keditor content='{$data.details}' width='800' height='300' name='details'/></td>
			</tr>
			
			<tr>
				<td>&nbsp;</td>
				<td><input type="submit" value="修改" class="btn btn-primary" /></td>
			</tr>
		</table>
		<input type="hidden" name="cid" value="{$step1.cid}" />
		<input type="hidden" name="sid" value="{$step1.sid}" />
		<input type="hidden" name="gid" value="{$data.gid}" />
	</form>
</body>
</html>